package cn.lbd.income.dao;

import cn.lbd.income.entity.Income;
import cn.lbd.income.entity.IncomeExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface IncomeDao {
    long countByExample(IncomeExample example);

    int deleteByExample(IncomeExample example);

    int deleteByPrimaryKey(BigDecimal id);

    int insert(Income record);

    int insertSelective(Income record);

    List<Income> selectByExample(IncomeExample example);

    List<Income> selectByPage();

    Income selectByPrimaryKey(BigDecimal id);

    int updateByExampleSelective(@Param("record") Income record, @Param("example") IncomeExample example);

    int updateByExample(@Param("record") Income record, @Param("example") IncomeExample example);

    int updateByPrimaryKeySelective(Income record);

    int updateByPrimaryKey(Income record);

    int batchUpdate(@Param("recordList") List<Income> recordList);

    int batchInsert(@Param("recordList") List<Income> recordList);

    int batchDelete(@Param("ids") BigDecimal[] ids);
}